/* 基本样式设置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.hint {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 14px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

button, .btn-back {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.btn-predict {
    background-color: #2980b9;
    color: white;
}

.btn-predict:hover {
    background-color: #3498db;
}

.btn-reset, .btn-back {
    background-color: #7f8c8d;
    color: white;
}

.btn-reset:hover, .btn-back:hover {
    background-color: #95a5a6;
}

/* 错误消息样式 */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* 结果容器样式 */
.result-container {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.result-header {
    text-align: center;
    margin-bottom: 25px;
}

.result-header h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 风险等级样式 */
.low-risk .risk-level {
    color: #27ae60;
}

.medium-risk .risk-level {
    color: #f39c12;
}

.high-risk .risk-level {
    color: #e74c3c;
}

/* 概率条样式 */
.probability-gauge {
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.gauge-fill {
    height: 100%;
    background-color: #3498db;
    border-radius: 10px;
}

.low-risk .gauge-fill {
    background-color: #27ae60;
}

.medium-risk .gauge-fill {
    background-color: #f39c12;
}

.high-risk .gauge-fill {
    background-color: #e74c3c;
}

.probability {
    font-size: 18px;
    margin-bottom: 10px;
}

.risk-level {
    font-size: 20px;
    font-weight: bold;
}

/* 结果详情样式 */
.result-details, .result-notes {
    margin-top: 30px;
}

.result-details h3, .result-notes h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

th {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.result-notes ul {
    margin: 15px 0;
    padding-left: 20px;
}

.result-notes li {
    margin-bottom: 8px;
}

/* 特征重要性样式 */
.importance-container {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.importance-chart {
    margin-bottom: 30px;
}

.chart-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.bar-label {
    width: 250px;
    text-align: right;
    padding-right: 15px;
    font-weight: bold;
}

.bar-fill {
    height: 20px;
    background-color: #3498db;
    border-radius: 4px;
    margin-right: 15px;
}

.bar-value {
    width: 60px;
}

.importance-explanation h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 8px;
}

.importance-explanation ul {
    padding-left: 20px;
}

.importance-explanation li {
    margin-bottom: 10px;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    color: #7f8c8d;
    border-top: 1px solid #e9ecef;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
} 